#ifndef IMAMMENU_H
#define IMAMMENU_H

int inImamActionIDEventResponder (int inActionCode);
int inImamFunctionIDEventResponder (int inFuncCode);
int inImamEnterKeyResponder(void);
int inImamCardResponder(void);
int inImamICC1Responder(void);
void vdImamDisplayMenu(int MenuAction);
void vdImamDisplayMenuComplete(int MenuAction);
int inImamRecountMenu(void);
int inImamProcessTrans(long MenuIndex);
int inImamProcessTransComplete(long MenuIndex);
int inImamSelectMenu(TRANSACTION_OBJECT *pobTran);
int inMenuSelection(void);
void vdImamDisplayTitle(char *msg);
void vdImamClearSevenLine(void);
void vdImamUnlockKeyboardAndDisplayOn(int Mode);
void vdImamClearScreen(void);

typedef struct {
	int  ActNumber;	// Active Number/Menu? Always "1", recount automatically
	int  Direction; // Automatically Counted. 1==maju, -1==mundur, changeable; 2 maju unchangeable; -2 mundur unchangeble; 0 no direction
	long Number;	// Number for cascading menu, always "1", recount automatically
	int  inFunctionID; 
	char Name[22];
	int  inCode;	//0 ==> Next Menu  // 1-1000==>Do Op, NextMenu//>1001 ==>Do Trx, Next Menu
	int  inBitmapID;
	int  inFooterID;
	int  inDataID;
	int  inPasswordLevel;
} SMenu;

#endif